export function getQueryObj(url: string) {
  if (url.split("?")[1]) {
    let arr = url.split("?")[1].split("#")[0].split("&");
    const resObj = {} as any;
    arr.forEach((item: any) => {
      let [key, value = ""] = item.split("=");
      resObj[key] = value;
    });

    return resObj;
  } else {
    return "";
  }
}
